import request from './request'

export const getPatient = () => {
  return request({
    url: 'patient1/',
    method: 'GET'
  })
}

export const editPatient = (data) => {
  return request({
    url: 'patient/update',
    method: 'post',
    data
  })
}

export const addPatient = (data) => {
  return request({
    url: 'patient/insert/',
    method: 'POST',
    data
  })
}

export const deleteUser = (data) => {
  return request({
    url: 'patient/delete',
    method: 'POST',
    data
  })
}
